package com.eightworld3.supermarket.service.dto.add;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author EightWorld3
 */
@Schema(description = "用户信息AddDto")
public class UserInfoAddDTO {
    /**
     * 旧版注解
     * Swagger2 @Schema(name = "用户名",example = "焯",requiredMode = Schema.RequiredMode.REQUIRED)
     */
    @Schema(name = "userName",example = "焯",requiredMode = Schema.RequiredMode.REQUIRED,description = "用户名")
    private String userName;

    /**
     * 旧版注解
     * Swagger2 @Schema(name = "密码",example = "123456",requiredMode = Schema.RequiredMode.REQUIRED)
     */
    @Schema(name = "userPassword",example = "123456",requiredMode = Schema.RequiredMode.REQUIRED,description = "密码")
    private String userPassword;

    /**
     * 旧版注解
     * Swagger2 @Schema(name = "用户权限",example = "0",requiredMode = Schema.RequiredMode.REQUIRED)
     */
    @Schema(name = "userPopedom",example = "0",requiredMode = Schema.RequiredMode.REQUIRED,description = "用户权限")
    private Integer userPopedom;

    /**
     * 旧版注解
     * Swagger2 @Schema(name = "联系方式",example = "110")
     */
    @Schema(name = "userTelephone",example = "110",description = "联系方式")
    private String userTelephone;

    /**
     * 旧版注解
     * Swagger2 @Schema(name = "备注",example = "备注")
     */
    @Schema(name = "userRemark",example = "备注",description = "备注")
    private String userRemark;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public int getUserPopedom() {
        return userPopedom;
    }

    public void setUserPopedom(int userPopedom) {
        this.userPopedom = userPopedom;
    }

    public String getUserTelephone() {
        return userTelephone;
    }

    public void setUserTelephone(String userTelephone) {
        this.userTelephone = userTelephone;
    }

    public String getUserRemark() {
        return userRemark;
    }

    public void setUserRemark(String userRemark) {
        this.userRemark = userRemark;
    }

    @Override
    public String toString() {
        return "UserInfoAddDTO{" +
                "userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userPopedom=" + userPopedom +
                ", userTelephone='" + userTelephone + '\'' +
                ", userRemark='" + userRemark + '\'' +
                '}';
    }
}
